import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 实销上报

// 列表查询 /vsSalesReport/searchRetailReportData
export const queryList = (params) => axios.get(`${SERVER.RETAIL}/vsSalesReport/searchRetailReportData`, {
  params
})
// 详情 /vsSalesReport/searchRetailOrderReportDataById
export const orderReportDataById = (Id) => axios.get(`${SERVER.RETAIL}/vsSalesReport/searchRetailOrderReportDataById?id=${Id}`)

// 保存 /vsSalesReport/saveReportDto
export const saveReport = (params) => axios.post(`${SERVER.RETAIL}/vsSalesReport/saveReportDto`, params)


// 提报 /vsSalesReport/commitReportDto
export const commitReportByDto = (params) => axios.post(`${SERVER.RETAIL}/vsSalesReport/commitReportDto`, params)

// 主页提报 /vsSalesReport/commitReportId
export const commitReportById = (Id) => axios.get(`${SERVER.RETAIL}/vsSalesReport/commitReportId?id=${Id}`, )

// 零售订单维护	查询销售顾问	sysmanage	 /employeeNew/getEmployees	get
export const getEmployees = (params) => axios.get(`${SERVER.SYSMANAGE}/employeeNew/getEmployees`, {
  params
});
